How to replace a random value from an array with another one

welcome to shbcf.ru